/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package uit.tkorg.coauthorgraph.property.file;

/**
 * @author tiendv
 *
 */
public class MASearchCrawlPatterns {

    public MASearchCrawlPatterns() {
    }

    public static int MAX_NUMBER_SHOW_IN_PAGE = 100;
    public static String A = "a";
    public static String AND = "&";
    public static String START = "start";
    public static String END = "end";
    public static String HREF = "href";
    public static String HREF_CLOSE = "</a>";

    public static String CLASS_AUTHORS = "<div class=\'author-compact-card\'>";
    public static String ACCADEMIC_HOMEPAGE_URL = "http://academic.research.microsoft.com";
    public static String ACCADEMIC_COAUTHOR_QUERY = "http://academic.research.microsoft.com/Detail?entitytype=2&searchtype=1&id=";
    public static String ACCADEMIC_CONFERENCE_QUERY = "http://academic.research.microsoft.com/Detail?entitytype=2&searchtype=3&id=";
    public static String ACCADEMIC_JOURNAL_QUERY = "http://academic.research.microsoft.com/Detail?searchtype=4&entitytype=2&id=";
    public static String ACCADEMIC_PUBLICATION_QUERY="http://academic.research.microsoft.com/Detail?searchtype=2&searchdomain=2&query=";
    public static String ACCADEMIC_KEYWORD_QUERY= "http://academic.research.microsoft.com/Detail?searchtype=9&entitytype=2&id=";
    public static String FIND_AUTHOR_ID = "id=^\\d*$";

    // Patterns to get the list of authors of papers
    public static String PATTERN_HREF_CLASS_LIST_AUTHOR_NAME = "<a class=\"author-name-tooltip\"";

    // Patterns to get the list of publications
    public static String PATTERN_PUBLICATION_COUNT = "ctl00_MainContent_PaperList_ctl00_HeaderLink";
    public static String PATTERN_PUBLICATION_ITEM_IN_LIST = "ctl00_MainContent_ObjectList_ctl";
    public static String PATTERN_DIV_TITLE = "_divTitle";
    public static String PATTERN_DIV_CLASS_LIST_AUTHOR_NAME = "<div class=\"content\">";
    public static String HTML_TAB = "\\<.*?>";
    public static String LI_CLOSE_TAB = "</li>";
    public static String HTML_TAB_OTHER = "&nbsp;";
    public static String DIV_CLASS_ABSTRACT_CONTENT = "<div class=\"abstract\">";
    public static String DIV_CLOSE_TAB = "</div>";
    public static String HL_CONFERENCE = "_HLConference";
    public static String HL_JOURNAL = "_HLJournal";
    public static String YEAR_CONFERENCE = "_YearConference";
    public static String YEAR_JOURNAL = "_YearJournal";
    public static String YEAR_PUBLISHED = "_lblYear";
    public static String PATTERN_PAGENUM_TO_PAGENUM = "(\\d+,*\\d*,*\\d*,*\\d*)-(\\d+,*\\d*,*\\d*,*\\d)";
    public static String PATTERN_YEAR = "(\\d{4})";

    public static String COAUTHOR_PATTERN_DIV = "ctl00_MainContent_ObjectList_ctl(NUM)_authorName";
    public static String CONFERENCE_AND_JOURNAL_AND_KEYWORD_PATTERN_DIV = "ctl00_MainContent_ObjectList_ctl(NUM)_name";
    public static String PUBLICATION_PATTERN_DIV = "ctl00_MainContent_ObjectList_ctl(NUM)_Title";

    public static String COAUTHOR_PUBLICATION_NUMBER_DIV ="ctl00_MainContent_ObjectList_ctl(NUM)_RelationEvidence_hypEvidence";
    public static String CONFERENCE_PUBLICATION_NUMBER_DIV = "ctl00_MainContent_ObjectList_ctl(NUM)_RelationEvidence_hypEvidence";
    public static String JOURNAL_PUBBLICATION_NUMBER_DIV = "ctl00_MainContent_ObjectList_ctl(NUM)_RelationEvidence_hypEvidence";

    public static String URL_START = "http://academic.research.microsoft.com/Search?query=";
    public static String URL_WITH_AUTHOR_ID = "http://academic.research.microsoft.com/Author/";
    public static String DOMAIN_COMPUTER_SCIENCE = "&SearchDomain=2";

    public static String ID_CO_AUTHOR ="ctl00_LeftPanel_CoAuthors_PanelHeader";
    public static String ID_JOURNAL="ctl00_LeftPanel_RelatedJournals_PanelHeader";
    public static String ID_PUBLICATION ="ctl00_MainContent_AuthorItem_publication";
    public static String ID_KEYWORD = "ctl00_LeftPanel_RelatedKeywords_PanelHeader";
    public static String ID_CONFERENCE="ctl00_LeftPanel_RelatedConferences_PanelHeader";
    public static String ID_AUTHOR_NAME = "ctl00_MainContent_AuthorItem_authorName";
}

